// 统一管理里面的api
import request from '@/utils/request'

// get - params
// post put - data
// auth/login 登录
export const authLogin = (data) => {
  return request({
    url: 'auth/login',
    method: 'POST',
    data
  })
}
// auth/code 验证码
export const authCode = () => {
  return request({
    url: '/auth/code'
  })
}

// 搜索 /api/users
export const getSearch = (params) => {
  return request({
    url: '/api/users',
    params
  })
}
